<div class="standard">
<?php

	$options = array();
	$actionurl = array();
	$actionurl['controller'] = 'index';
	$actionurl['action'] = 'adminprofile';
	$options['action'] = $this->url($actionurl);
    $form = new AdministratorForm( $options );
	
    // run a validity check here.
    $is_valid = $form->isValid($this->user_profile);

    // populate the form with the profile data
    $form->populate( $this->user_profile );
	
    // now that we've got the form populated (and optionally have error messages)
//    echo $form->render_with_template( "ksadminprofile.xhtml" );
	echo $form;
 ?>
</div>
